package com.yc.model;

import java.util.ArrayList;
import java.util.List;

public class DishesinfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DishesinfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDishesidIsNull() {
            addCriterion("dishesId is null");
            return (Criteria) this;
        }

        public Criteria andDishesidIsNotNull() {
            addCriterion("dishesId is not null");
            return (Criteria) this;
        }

        public Criteria andDishesidEqualTo(Integer value) {
            addCriterion("dishesId =", value, "dishesid");
            return (Criteria) this;
        }

        public Criteria andDishesidNotEqualTo(Integer value) {
            addCriterion("dishesId <>", value, "dishesid");
            return (Criteria) this;
        }

        public Criteria andDishesidGreaterThan(Integer value) {
            addCriterion("dishesId >", value, "dishesid");
            return (Criteria) this;
        }

        public Criteria andDishesidGreaterThanOrEqualTo(Integer value) {
            addCriterion("dishesId >=", value, "dishesid");
            return (Criteria) this;
        }

        public Criteria andDishesidLessThan(Integer value) {
            addCriterion("dishesId <", value, "dishesid");
            return (Criteria) this;
        }

        public Criteria andDishesidLessThanOrEqualTo(Integer value) {
            addCriterion("dishesId <=", value, "dishesid");
            return (Criteria) this;
        }

        public Criteria andDishesidIn(List<Integer> values) {
            addCriterion("dishesId in", values, "dishesid");
            return (Criteria) this;
        }

        public Criteria andDishesidNotIn(List<Integer> values) {
            addCriterion("dishesId not in", values, "dishesid");
            return (Criteria) this;
        }

        public Criteria andDishesidBetween(Integer value1, Integer value2) {
            addCriterion("dishesId between", value1, value2, "dishesid");
            return (Criteria) this;
        }

        public Criteria andDishesidNotBetween(Integer value1, Integer value2) {
            addCriterion("dishesId not between", value1, value2, "dishesid");
            return (Criteria) this;
        }

        public Criteria andDishesnameIsNull() {
            addCriterion("dishesName is null");
            return (Criteria) this;
        }

        public Criteria andDishesnameIsNotNull() {
            addCriterion("dishesName is not null");
            return (Criteria) this;
        }

        public Criteria andDishesnameEqualTo(String value) {
            addCriterion("dishesName =", value, "dishesname");
            return (Criteria) this;
        }

        public Criteria andDishesnameNotEqualTo(String value) {
            addCriterion("dishesName <>", value, "dishesname");
            return (Criteria) this;
        }

        public Criteria andDishesnameGreaterThan(String value) {
            addCriterion("dishesName >", value, "dishesname");
            return (Criteria) this;
        }

        public Criteria andDishesnameGreaterThanOrEqualTo(String value) {
            addCriterion("dishesName >=", value, "dishesname");
            return (Criteria) this;
        }

        public Criteria andDishesnameLessThan(String value) {
            addCriterion("dishesName <", value, "dishesname");
            return (Criteria) this;
        }

        public Criteria andDishesnameLessThanOrEqualTo(String value) {
            addCriterion("dishesName <=", value, "dishesname");
            return (Criteria) this;
        }

        public Criteria andDishesnameLike(String value) {
            addCriterion("dishesName like", value, "dishesname");
            return (Criteria) this;
        }

        public Criteria andDishesnameNotLike(String value) {
            addCriterion("dishesName not like", value, "dishesname");
            return (Criteria) this;
        }

        public Criteria andDishesnameIn(List<String> values) {
            addCriterion("dishesName in", values, "dishesname");
            return (Criteria) this;
        }

        public Criteria andDishesnameNotIn(List<String> values) {
            addCriterion("dishesName not in", values, "dishesname");
            return (Criteria) this;
        }

        public Criteria andDishesnameBetween(String value1, String value2) {
            addCriterion("dishesName between", value1, value2, "dishesname");
            return (Criteria) this;
        }

        public Criteria andDishesnameNotBetween(String value1, String value2) {
            addCriterion("dishesName not between", value1, value2, "dishesname");
            return (Criteria) this;
        }

        public Criteria andDishesdiscriptIsNull() {
            addCriterion("dishesDiscript is null");
            return (Criteria) this;
        }

        public Criteria andDishesdiscriptIsNotNull() {
            addCriterion("dishesDiscript is not null");
            return (Criteria) this;
        }

        public Criteria andDishesdiscriptEqualTo(String value) {
            addCriterion("dishesDiscript =", value, "dishesdiscript");
            return (Criteria) this;
        }

        public Criteria andDishesdiscriptNotEqualTo(String value) {
            addCriterion("dishesDiscript <>", value, "dishesdiscript");
            return (Criteria) this;
        }

        public Criteria andDishesdiscriptGreaterThan(String value) {
            addCriterion("dishesDiscript >", value, "dishesdiscript");
            return (Criteria) this;
        }

        public Criteria andDishesdiscriptGreaterThanOrEqualTo(String value) {
            addCriterion("dishesDiscript >=", value, "dishesdiscript");
            return (Criteria) this;
        }

        public Criteria andDishesdiscriptLessThan(String value) {
            addCriterion("dishesDiscript <", value, "dishesdiscript");
            return (Criteria) this;
        }

        public Criteria andDishesdiscriptLessThanOrEqualTo(String value) {
            addCriterion("dishesDiscript <=", value, "dishesdiscript");
            return (Criteria) this;
        }

        public Criteria andDishesdiscriptLike(String value) {
            addCriterion("dishesDiscript like", value, "dishesdiscript");
            return (Criteria) this;
        }

        public Criteria andDishesdiscriptNotLike(String value) {
            addCriterion("dishesDiscript not like", value, "dishesdiscript");
            return (Criteria) this;
        }

        public Criteria andDishesdiscriptIn(List<String> values) {
            addCriterion("dishesDiscript in", values, "dishesdiscript");
            return (Criteria) this;
        }

        public Criteria andDishesdiscriptNotIn(List<String> values) {
            addCriterion("dishesDiscript not in", values, "dishesdiscript");
            return (Criteria) this;
        }

        public Criteria andDishesdiscriptBetween(String value1, String value2) {
            addCriterion("dishesDiscript between", value1, value2, "dishesdiscript");
            return (Criteria) this;
        }

        public Criteria andDishesdiscriptNotBetween(String value1, String value2) {
            addCriterion("dishesDiscript not between", value1, value2, "dishesdiscript");
            return (Criteria) this;
        }

        public Criteria andDishesimgIsNull() {
            addCriterion("dishesImg is null");
            return (Criteria) this;
        }

        public Criteria andDishesimgIsNotNull() {
            addCriterion("dishesImg is not null");
            return (Criteria) this;
        }

        public Criteria andDishesimgEqualTo(String value) {
            addCriterion("dishesImg =", value, "dishesimg");
            return (Criteria) this;
        }

        public Criteria andDishesimgNotEqualTo(String value) {
            addCriterion("dishesImg <>", value, "dishesimg");
            return (Criteria) this;
        }

        public Criteria andDishesimgGreaterThan(String value) {
            addCriterion("dishesImg >", value, "dishesimg");
            return (Criteria) this;
        }

        public Criteria andDishesimgGreaterThanOrEqualTo(String value) {
            addCriterion("dishesImg >=", value, "dishesimg");
            return (Criteria) this;
        }

        public Criteria andDishesimgLessThan(String value) {
            addCriterion("dishesImg <", value, "dishesimg");
            return (Criteria) this;
        }

        public Criteria andDishesimgLessThanOrEqualTo(String value) {
            addCriterion("dishesImg <=", value, "dishesimg");
            return (Criteria) this;
        }

        public Criteria andDishesimgLike(String value) {
            addCriterion("dishesImg like", value, "dishesimg");
            return (Criteria) this;
        }

        public Criteria andDishesimgNotLike(String value) {
            addCriterion("dishesImg not like", value, "dishesimg");
            return (Criteria) this;
        }

        public Criteria andDishesimgIn(List<String> values) {
            addCriterion("dishesImg in", values, "dishesimg");
            return (Criteria) this;
        }

        public Criteria andDishesimgNotIn(List<String> values) {
            addCriterion("dishesImg not in", values, "dishesimg");
            return (Criteria) this;
        }

        public Criteria andDishesimgBetween(String value1, String value2) {
            addCriterion("dishesImg between", value1, value2, "dishesimg");
            return (Criteria) this;
        }

        public Criteria andDishesimgNotBetween(String value1, String value2) {
            addCriterion("dishesImg not between", value1, value2, "dishesimg");
            return (Criteria) this;
        }

        public Criteria andDishestxtIsNull() {
            addCriterion("dishesTxt is null");
            return (Criteria) this;
        }

        public Criteria andDishestxtIsNotNull() {
            addCriterion("dishesTxt is not null");
            return (Criteria) this;
        }

        public Criteria andDishestxtEqualTo(String value) {
            addCriterion("dishesTxt =", value, "dishestxt");
            return (Criteria) this;
        }

        public Criteria andDishestxtNotEqualTo(String value) {
            addCriterion("dishesTxt <>", value, "dishestxt");
            return (Criteria) this;
        }

        public Criteria andDishestxtGreaterThan(String value) {
            addCriterion("dishesTxt >", value, "dishestxt");
            return (Criteria) this;
        }

        public Criteria andDishestxtGreaterThanOrEqualTo(String value) {
            addCriterion("dishesTxt >=", value, "dishestxt");
            return (Criteria) this;
        }

        public Criteria andDishestxtLessThan(String value) {
            addCriterion("dishesTxt <", value, "dishestxt");
            return (Criteria) this;
        }

        public Criteria andDishestxtLessThanOrEqualTo(String value) {
            addCriterion("dishesTxt <=", value, "dishestxt");
            return (Criteria) this;
        }

        public Criteria andDishestxtLike(String value) {
            addCriterion("dishesTxt like", value, "dishestxt");
            return (Criteria) this;
        }

        public Criteria andDishestxtNotLike(String value) {
            addCriterion("dishesTxt not like", value, "dishestxt");
            return (Criteria) this;
        }

        public Criteria andDishestxtIn(List<String> values) {
            addCriterion("dishesTxt in", values, "dishestxt");
            return (Criteria) this;
        }

        public Criteria andDishestxtNotIn(List<String> values) {
            addCriterion("dishesTxt not in", values, "dishestxt");
            return (Criteria) this;
        }

        public Criteria andDishestxtBetween(String value1, String value2) {
            addCriterion("dishesTxt between", value1, value2, "dishestxt");
            return (Criteria) this;
        }

        public Criteria andDishestxtNotBetween(String value1, String value2) {
            addCriterion("dishesTxt not between", value1, value2, "dishestxt");
            return (Criteria) this;
        }

        public Criteria andRecommendIsNull() {
            addCriterion("recommend is null");
            return (Criteria) this;
        }

        public Criteria andRecommendIsNotNull() {
            addCriterion("recommend is not null");
            return (Criteria) this;
        }

        public Criteria andRecommendEqualTo(Integer value) {
            addCriterion("recommend =", value, "recommend");
            return (Criteria) this;
        }

        public Criteria andRecommendNotEqualTo(Integer value) {
            addCriterion("recommend <>", value, "recommend");
            return (Criteria) this;
        }

        public Criteria andRecommendGreaterThan(Integer value) {
            addCriterion("recommend >", value, "recommend");
            return (Criteria) this;
        }

        public Criteria andRecommendGreaterThanOrEqualTo(Integer value) {
            addCriterion("recommend >=", value, "recommend");
            return (Criteria) this;
        }

        public Criteria andRecommendLessThan(Integer value) {
            addCriterion("recommend <", value, "recommend");
            return (Criteria) this;
        }

        public Criteria andRecommendLessThanOrEqualTo(Integer value) {
            addCriterion("recommend <=", value, "recommend");
            return (Criteria) this;
        }

        public Criteria andRecommendIn(List<Integer> values) {
            addCriterion("recommend in", values, "recommend");
            return (Criteria) this;
        }

        public Criteria andRecommendNotIn(List<Integer> values) {
            addCriterion("recommend not in", values, "recommend");
            return (Criteria) this;
        }

        public Criteria andRecommendBetween(Integer value1, Integer value2) {
            addCriterion("recommend between", value1, value2, "recommend");
            return (Criteria) this;
        }

        public Criteria andRecommendNotBetween(Integer value1, Integer value2) {
            addCriterion("recommend not between", value1, value2, "recommend");
            return (Criteria) this;
        }

        public Criteria andDishespriceIsNull() {
            addCriterion("dishesPrice is null");
            return (Criteria) this;
        }

        public Criteria andDishespriceIsNotNull() {
            addCriterion("dishesPrice is not null");
            return (Criteria) this;
        }

        public Criteria andDishespriceEqualTo(Float value) {
            addCriterion("dishesPrice =", value, "dishesprice");
            return (Criteria) this;
        }

        public Criteria andDishespriceNotEqualTo(Float value) {
            addCriterion("dishesPrice <>", value, "dishesprice");
            return (Criteria) this;
        }

        public Criteria andDishespriceGreaterThan(Float value) {
            addCriterion("dishesPrice >", value, "dishesprice");
            return (Criteria) this;
        }

        public Criteria andDishespriceGreaterThanOrEqualTo(Float value) {
            addCriterion("dishesPrice >=", value, "dishesprice");
            return (Criteria) this;
        }

        public Criteria andDishespriceLessThan(Float value) {
            addCriterion("dishesPrice <", value, "dishesprice");
            return (Criteria) this;
        }

        public Criteria andDishespriceLessThanOrEqualTo(Float value) {
            addCriterion("dishesPrice <=", value, "dishesprice");
            return (Criteria) this;
        }

        public Criteria andDishespriceIn(List<Float> values) {
            addCriterion("dishesPrice in", values, "dishesprice");
            return (Criteria) this;
        }

        public Criteria andDishespriceNotIn(List<Float> values) {
            addCriterion("dishesPrice not in", values, "dishesprice");
            return (Criteria) this;
        }

        public Criteria andDishespriceBetween(Float value1, Float value2) {
            addCriterion("dishesPrice between", value1, value2, "dishesprice");
            return (Criteria) this;
        }

        public Criteria andDishespriceNotBetween(Float value1, Float value2) {
            addCriterion("dishesPrice not between", value1, value2, "dishesprice");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}